/*
 * ListeningSocket.h
 *
 *  Created on: Nov 2, 2012
 *      Author: lucas
 */

#ifndef LISTENINGSOCKET_H_
#define LISTENINGSOCKET_H_

#include "../common/Socket.h"
#include "../common/CommunicationSocket.h"

class ListeningSocket: public Socket {
private:
	int puerto;
	bool listening;
	ListeningSocket(const ListeningSocket& ls);
	ListeningSocket& operator=(const ListeningSocket& ls);
public:
	explicit ListeningSocket(int port) : puerto(port), listening(false) {};
	CommunicationSocket* aceptar();
	bool escuchar();
	bool escuchando();
	virtual ~ListeningSocket();
};

#endif /* LISTENINGSOCKET_H_ */
